DevJourney

NodeJS/geeksforgeekstutorial/File Server/File Management/Append File/server2.js

var fs = require('fs');

fs.appendFile('mynewfile1.txt', ' This is my text.', function (err) {
  if (err) throw err;
  console.log('Updated!');
});
View on GitHub